package org.charles.zhifou.model.dto.userAnswer;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * 更新用户答案请求
 *
 * @author Charles
 * @version 1.0
 */
@Data
public class UserAnswerUpdateRequest implements Serializable {

    @Schema(description = "id")
    @NotNull(message = "id 不能为空")
    @Min(value = 1, message = "id 必须大于 0")
    private Long id;

    @Schema(description = "应用 id")
    @Min(value = 1, message = "应用 id 必须大于 0")
    private Long appId;

    @Schema(description = "用户答案 (JSON 数组)")
    @NotNull(message = "用户答案不能为空")
    private List<String> choices;

    @Serial
    private static final long serialVersionUID = 1L;
}